/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package kotionokyurievna.gmail.com.biginteger.logic;

/**
 *
 * @author kotionokyurievna
 */
public class SimpleThread implements Runnable{

    private BigNumber bigInteger;
    
    public SimpleThread( BigNumber bigInt){
        bigInteger = bigInt;
    }
    
    @Override
    public void run() {
        for ( int i = 0; i < 5; i++ ){
            System.out.println( bigInteger.next() );
        }
    }
    
}
